package com.bed.lovewithpatientbed.service;

import com.bed.lovewithpatientbed.pojo.Role;
import com.bed.lovewithpatientbed.pojo.WorkerMessage;

/**
 * @author xuxiaoding
 * @version 1.0.0
 * @ClassName IWorkMessageService.java
 * @Description TODO
 */
public interface IWorkMessageService {

    /**
     * @title retrieveWorkMessageByPhone
     * @description 根据 workMessagePhone 查询 workMessage 信息
     * @author xuxiaoding
     * @param workMessagePhone 电话
     * @return 返回查询的 WorkerMessage
     */
    WorkerMessage retrieveWorkMessageByPhone(String workMessagePhone);
    
    /**
     * @title getRoleByRoleId
     * @description 根据 roleId 获取角色
     * @author xuxiaoding
     * @param roleId 角色id
     * @return 返回查询到的信息
     */
    Role getRoleByRoleId(Integer roleId);
    /**
     * @description 重置密码
     * @author tyl
     * @updateTime 2020/10/22 19:08
     * @param
     */
    void resetPassword(WorkerMessage workerMessage);
    /**
     * @description 根据账号密码查询对象
     * @author tyl
     * @updateTime 2020/10/22 21:01
     * @param
     */
    WorkerMessage selectByPhoneAndPwd(WorkerMessage WorkerMessage);
}
